{% extends 'base/base.html' %}

{% block css %}
<style>
    .bdsub{
        padding: 1px;
        background: #FFFFFF;
        border: 1px solid #E4E4E4;
    }
    .bdsub #book-list .title{
        font-size: 14px;
        font-weight: bold;
        padding: 10px 0 0 10px;
    }
    .bdsub #book-list ul{
        margin: 10px;
        border: 1px solid #E4E4E4;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .bdsub #book-list ul li{
        padding: 5px 0px 0px 0px;
        border-bottom: solid 1px #DDDDDD;
        height: 30px;
        line-height: 25px;
    }
     h3{
        font-size: 20px;
        font-weight: bold;
        text-align: center;
        margin: 0 0 10px 0;
        padding: 0;
     }
</style>
{% endblock %}

{% block title %}
<title>搜索结果</title>
{% endblock %}


{% block body %}
{% if query %}

<div class="bdtop"></div>
<div class="bdsub">
    <div id="bookcase">
        <div id="book-list">
            <div class="title">
                <h3>搜索结果</h3>
            </div>
            <ul>
                {% for result in page.object_list %}
                <li>
                    书名：<a href="#">{{ result.object.name }}</a>作者：{{ result.object.author }}<br/>
                </li>
                {% empty %}
                什么都没有搜到
                {% endfor %}
            </ul>
        </div>
    </div>
</div>


{% endif %}
{% endblock %}